package lschgcdev.gdx;
import com.badlogic.gdx.*;

import lschgcdev.apis.*;
import com.badlogic.gdx.graphics.glutils.*;
import com.badlogic.gdx.graphics.g2d.*;
import com.badlogic.gdx.scenes.scene2d.*;
import com.badlogic.gdx.graphics.*;

public class GDXGame extends LayerStructure<GDXLayer> implements ApplicationListener
{
	
	public static GDXGame INSTANCE = new GDXGame();
	public static ShapeRenderer sR;
	public static SpriteBatch sB;
	public static Stage stage;
	
	@Override
	public void create(){
		sR = new ShapeRenderer();
		sB = new SpriteBatch();
		stage = new Stage();
	}

	@Override
	public void resize(int width, int height){
		
	}

	@Override
	public void render(){
		Gdx.gl.glClearColor(1, 1, 1, 1);
	    Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
		for(GDXLayer layer : layerVisible)
			layer.render();
	}

	@Override
	public void pause(){
		
	}

	@Override
	public void resume(){
		
	}

	@Override
	public void dispose(){
		
	}
}
